Optimal. Leaf size=30 \[ \frac{\log (\tan (a+b x))}{8 b}-\frac{\cot ^2(a+b x)}{16 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0467969, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {4287, 2620, 14} \[ \frac{\log (\tan (a+b x))}{8 b}-\frac{\cot ^2(a+b x)}{16 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4287
Rule 2620
Rule 14
Rubi steps
\begin{align*} \int \cos ^2(a+b x) \csc ^3(2 a+2 b x) \, dx &=\frac{1}{8} \int \csc ^3(a+b x) \sec (a+b x) \, dx\\ &=\frac{\operatorname{Subst}\left (\int \frac{1+x^2}{x^3} \, dx,x,\tan (a+b x)\right )}{8 b}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{1}{x^3}+\frac{1}{x}\right ) \, dx,x,\tan (a+b x)\right )}{8 b}\\ &=-\frac{\cot ^2(a+b x)}{16 b}+\frac{\log (\tan (a+b x))}{8 b}\\ \end{align*}
Mathematica [A] time = 0.0435241, size = 34, normalized size = 1.13 \[ -\frac{\csc ^2(a+b x)-2 \log (\sin (a+b x))+2 \log (\cos (a+b x))}{16 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 27, normalized size = 0.9 \begin{align*} -{\frac{1}{16\,b \left ( \sin \left ( bx+a \right ) \right ) ^{2}}}+{\frac{\ln \left ( \tan \left ( bx+a \right ) \right ) }{8\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.20243, size = 886, normalized size = 29.53 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.499714, size = 177, normalized size = 5.9 \begin{align*} -\frac{{\left (\cos \left (b x + a\right )^{2} - 1\right )} \log \left (\cos \left (b x + a\right )^{2}\right ) -{\left (\cos \left (b x + a\right )^{2} - 1\right )} \log \left (-\frac{1}{4} \, \cos \left (b x + a\right )^{2} + \frac{1}{4}\right ) - 1}{16 \,{\left (b \cos \left (b x + a\right )^{2} - b\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.28487, size = 161, normalized size = 5.37 \begin{align*} -\frac{\frac{{\left (\frac{4 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - 1\right )}{\left (\cos \left (b x + a\right ) + 1\right )}}{\cos \left (b x + a\right ) - 1} - \frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 4 \, \log \left (\frac{{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right ) + 8 \, \log \left ({\left | -\frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 1 \right |}\right )}{64 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]